//    Copyright (C) Kherty.  All rights reserved.
using System.Diagnostics;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    class Record52: IgnoredBiffRecord
    {
        internal override BiffRecordType RecordType
        {
            get { return (BiffRecordType) 52; }
        }
    }
    internal abstract class IgnoredBiffRecord : BiffRecord
    {
        private byte[] _data;


        internal override sealed void WriteContent(BiffWriterWorkbookContext context)
        {
            Debug.WriteLine("Ignored " + RecordType);
            context.Writer.Write(_data);
        }

        protected override sealed void ReadContent(BiffReaderContext context, int length)
        {
          //\\  Debug.WriteLine("Ignored " + RecordType);
            _data = context.ReadBytes(length);
        }
    }
}